//
//  NotificationData.m
//  TableViewApp
//
//  Created by Dmitriy on 17.06.13.
//  Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//

#import "NotificationData.h"

@implementation NotificationData
@synthesize caption = _caption;
@synthesize timeInterval = _timeInterval;
-(id) initWithCaption:(NSString*)argCaption 
     WithTimeInterval:(NSTimeInterval)argTimeInterval
{
    self = [super init];
    if(self)
    {
        _caption = [argCaption retain];
        _timeInterval = argTimeInterval;
    }
    return self;
}
-(id) init
{
    return [self initWithCaption:nil WithTimeInterval:0];
}

-(void) dealloc
{
    [_caption release];
    [super dealloc];
}
+(NotificationData*) notificationDataWithCaption:(NSString*)argCaption 
                                WithTimeInterval:(NSTimeInterval)argTimeInterval;
{
    NotificationData* result = [[[NotificationData alloc] initWithCaption:argCaption WithTimeInterval:argTimeInterval] autorelease];
    //autorelease?
    return result;
}

@end
